<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>02-99乘法表</title>
  <style>
    span{
      display: inline-block;
      border: 1px solid #c2c2c2;
      text-align: center;
      margin: 5px 2px;
      width: 100px;
      box-shadow: 2px 2px 2px #ccc;
      background-color: beige;
    }
  </style>
</head>
<body>
  <!--将模板加饰灵活-->
  <script>
    for(let i=1;i<=9;i++){
      for(let j=1;j<=i;j++){
        document.write(`<span>${j}*${i}=${i*j}</span>`);
      }
      //换行
      document.write(`<br>`);
    }
</script>
</body>
</html>